home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Demos
/
A.D. Software
/
OOFILE 1.3b4d6.sit
/
OOFILE 1.3b4d6
/
OOFGraph 1.0b2 Demo
/
Application Source
/
GrTstApp.h
< prev
next >
Wrap
Text File
|
1997-03-23
|
3KB
|
130 lines
#ifndef H_GRTSTAPP
#define H_GRTSTAPP
#include "oofile.h"
// TEST DATABASES
DECLARE_CLASS(dbStudent)
dbChar Name, Subject;
dbLong Mark;
dbStudent() :
dbTable("Students"),
Name(39, "Name", kIndexCompress),
Subject(79, "Subject", kIndexCompress),
Mark("Mark", kIndexed)
{};
// my own data entry procedures
void Add(const char *name, const char *subject, const long mark);
void AddTestData();
};
DECLARE_CLASS(dbOverlay)
dbChar Name;
dbLong LastYear;
dbOverlay():
dbTable("Overlay"),
Name(39, "Name"),
LastYear("Last Year")
{};
// my own data entry procedures
void Add(const char *name, const long lastyear);
void AddTestData();
};
DECLARE_CLASS(dbStudentOverlay)
dbChar Name, Subject;
dbLong Mark;
dbStudentOverlay() :
dbTable("Students"),
Name(39, "Name", kIndexCompress),
Subject(79, "Subject", kIndexCompress),
Mark("Mark", kIndexed)
{};
// my own data entry procedures
void Add(const char *name, const char *subject, const long mark);
void AddTestData();
};
DECLARE_CLASS(dbMath)
dbChar Name;
dbReal Xval,Yval;
dbMath() :
dbTable("Some Curves"),
Name(39, "Name", kIndexCompress),
Xval("X Value", kIndexed),
Yval("Y Value", kIndexed)
{};
// my own data entry procedures
void Add(const char *name, const double x, const double y);
void AddTestData();
};
DECLARE_CLASS(dbTemperature)
dbChar Day, Time;
dbLong Temp;
dbTemperature() :
dbTable("Temperatures"),
Day(12, "Day", kIndexCompress),
Time(12, "Time", kIndexCompress),
Temp("Temperature", kIndexed)
{};
// my own data entry procedures
void Add(const char *day, const char *time, const long temp);
void AddTestData();
};
DECLARE_CLASS(dbExports)
dbChar Year, Port;
dbReal Value;
dbChar Outcome;
dbExports() :
dbTable("Exports"),
Year(5, "Year"),
Port(20, "Port"),
Value("Value ($M)"),
Outcome(20, "Outcome")
{};
// my own data entry procedures
void Add(const char *year, const char *port, const double value, const char *outcome);
void AddTestData();
};
// ===========================================================================
// GrTstApp.h Derived heavily from the Dashboard Starter
// ===========================================================================
#include <LApplication.h>
class oofGraphWindow;
class LWindow;
class GraphTestApp : public LApplication {
public:
virtual void Initialize();
virtual ~GraphTestApp();
virtual Boolean ObeyCommand(CommandT inCommand, void *ioParam = nil);
virtual void FindCommandStatus(CommandT inCommand,
Boolean &outEnabled, Boolean &outUsesMark,
Char16 &outMark, Str255 outName);
};
#endif